package com.cloud.springcloud.service;

import com.cloud.springcloud.entities.CommonResult;
import com.cloud.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName HuangXiangXiang
 * @Date 2020/4/5 2:17
 * @Version V1.0
 **/

@FeignClient(name = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeginService {

    @GetMapping(value = "/payment/get/{id}")
     CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);



    @GetMapping(value = "/payment/feign/timeout")
    public String paymentFeignTimeout();

}
